<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:choose>
	<c:when test="${user != null}">
		<c:if test="${usertype == 'Admin User'}">
			<jsp:forward page="404.jsp" />
		</c:if>
	</c:when>
	<c:otherwise>
		<jsp:forward page="login.jsp" />
	</c:otherwise>
</c:choose>

<div id="content">


	<div id="page-heading">
		<h1>Transfer Money - Account ngtuan0123</h1>
	</div>

	<table id="content-table">
		<tr>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowleft.jpg" width="20"
				height="300" alt="" /></th>
			<th class="topleft"></th>
			<td id="tbl-border-top">&nbsp;</td>
			<th class="topright"></th>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowright.jpg" width="20"
				height="300" alt="" /></th>
		</tr>
		<tr>
			<td id="tbl-border-left"></td>
			<td>
				<!--  start content-table-inner -->
				<div id="content-table-inner">
					<!--  start step-holder -->
					<div id="step-holder">
						<div class="step-no">1</div>
						<div class="step-light-left" onClick="history.go(-1);return true;">Transfer
							Money</div>
						<div class="step-light-right">&nbsp;</div>
						<div class="step-no-off">2</div>
						<div class="step-dark-left">Confirm Transaction</div>
						<div class="step-dark-right">&nbsp;</div>
						<div class="step-no-off">3</div>
						<div class="step-light-left">Done</div>
						<div class="step-light-round">&nbsp;</div>
						<div class="clear"></div>
					</div>
					<!--  end step-holder -->
					<table>
						<tr valign="top">

							<td style="width: 400px">
								<h1 style="margin-bottom: 10px;">Sender Info</h1> <!-- start id-form -->
								<table id="id-form">
									<tr>
										<th valign="top" style="">Account Number:</th>
										<td>${senderAccount.accountNumber}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">ID Card Number:</th>
										<td>${senderAccount.idCustomer.idCardNumber}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Customer Name:</th>
										<td>${senderAccount.idCustomer.firstName}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Current Balance:</th>
										<td>${senderAccount.balance}</td>
										<td></td>
									</tr>

									<tr>
										<th valign="top">Amount Transfer:</th>
										<td>${amountTransfer}</td>
										<td></td>
									</tr>

								</table> <!-- end id-form  -->

							</td>
							<td>

								<h1 style="margin-bottom: 10px;">Receiver Info</h1>
								<table id="id-form">
									<tbody>
										<tr>
											<th valign="top" style="">Account Number:</th>
											<td>${receiverAccount.accountNumber}</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">ID Card Number:</th>
											<td>${receiverAccount.idCustomer.idCardNumber}</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Customer Name:</th>
											<td>${receiverAccount.idCustomer.firstName}</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Current Balance:</th>
											<td>${receiverAccount.balance}</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Amount Transfer:</th>
											<td>${amountTransfer}</td>
											<td></td>
										</tr>

										<tr>
											<th>&nbsp;</th>
											<td><input
												onClick="location.href='transferTransComplete.html?senderAccountNumber=${senderAccount.accountNumber}&receiverAccountNumber=${receiverAccount.accountNumber}&amountMoneyTransfer=${amountTransfer}'"
												type="button" class="btnApprove" value="Comfirm"
												id="transfer" /></td>
											<td valign="top"><input
												onClick="location.href='searchAccount.html'" type="button"
												class="btnApprove" value="Close" id="transfer" /></td>

										</tr>

									</tbody>
								</table>


							</td>
						</tr>
						<tr>
							<td><img src="resource/images/shared/blank.gif" width="695"
								height="1" alt="blank" /></td>
							<td></td>
						</tr>
					</table>

					<div class="clear"></div>


				</div> <!--  end content-table-inner  -->
			</td>
			<td id="tbl-border-right"></td>
		</tr>
		<tr>
			<th class="sized bottomleft"></th>
			<td id="tbl-border-bottom">&nbsp;</td>
			<th class="sized bottomright"></th>
		</tr>
	</table>


	<div class="clear">&nbsp;</div>

</div>